<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>5_元素消失方式</title>
    <style>
        div{
            width: 200px;
            height: 200px;
        }
        .d1{background-color: #f00;
            }
        .d1:hover{
            transform: scale(0) ;
        }
        .d2{background-color: #0f0;

        }
        .d2:hover{
            display: none;
        }
        .d3{background-color: #00f;}
        .d3:hover{
            opacity: 0;
        }
        .d4{background-color: #f90;}
    </style>
</head>
<body>
    <div class="d1"></div>
    <div class="d2"></div>
    <div class="d3"></div>
    <div class="d4"></div>
</body>
</html>